<?php
include 'db_params.php';

$center_lat='-33.385864';
$uid="1255095219";

$result = mysql_query("SELECT user2.name as name2 FROM users, friends WHERE users.uid = '$uid' and friends.uid = (SELECT user2.uid FROM users as user2)");

while($row = mysql_fetch_array($result))
  {
echo '<p>'.$row['name2'].'</p>';
  }
?>